#include "STC89C5xRC.H"
#define u8 unsigned char 
#define u16 unsigned int
void delayMs(u16 ms);


void main()//
{
	u8 b;
	while(1)
	{
		for(b = 0;b < 8; b++)
		{
			P1 = ~(0x01 << b);
			delayMs(500);									
		}
	}
}

void delayMs(u16 ms)
{
	u16 a,b;
	for(a = ms;a > 0;a--)
		for(b = 114;b > 0;b--);
}


